<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>公司列表</title>
</head>
<body>
	<table>
		<thead><tr><td>公司名称</td><td>网址</td><td>联系人</td><td>联系电话</td><td>邮箱</td><td>地址</td><td>公司简介</td></tr></thead>
		<tfoot>
			<tr>
			<td colspan="2">
				<c:if test="${!pagination.first}">
					<a href="browseCompany.action?pagination.no=1">首页</a>
				</c:if>
			</td>
			<td colspan="2">
				<c:if test="${pagination.previous}">
					<a href="browseCompany.action?pagination.no=${pagination.no-1}">上一页</a>
				</c:if>
			</td>
			<td colspan="2">
				<c:if test="${pagination.next}">
					<a href="browseCompany.action?pagination.no=${pagination.no+1 }">下一页</a>
				</c:if>
			</td>
			<td>
				<c:if test="${!pagination.last}">
					<a href="browseCompany.action?pagination.no=${pagination.pageSum }">尾页</a>
				</c:if>
			</td>
			</tr>
		</tfoot>
		<tbody>
			<s:iterator value="pagination.results"  status="stuts">
				<s:if test="#stuts.odd == true">
					<tr>
					<td><s:property value="companyName" /></td>
					<td><s:property value="companyURL" /></td>
					<td><s:property value="companyLinkMan" /></td>
					<td><s:property value="companyPhone" /></td>
					<td><s:property value="companyEmail" /></td>
					<td><s:property value="companyURL" /></td>
					<td><s:property value="companyDescription" /></td>
					</tr>
				</s:if>
				<s:else>
					<tr>
					<td><s:property value="companyName" /></td>
					<td><s:property value="companyURL" /></td>
					<td><s:property value="companyLinkMan" /></td>
					<td><s:property value="companyPhone" /></td>
					<td><s:property value="companyEmail" /></td>
					<td><s:property value="companyURL" /></td>
					<td><s:property value="companyDescription" /></td>
					</tr>
				</s:else>
			</s:iterator>
			
		</tbody>
	</table>
</body>
</html>